home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 May / CMCD0504.ISO / Software / Freeware / Programare / dspack / DSPACK231.exe / {app} / include / asferr.h next >
Encoding:
C/C++ Source or Header  |  2002-10-27  |  11.0 KB  |  481 lines

  1. ///////////////////////////////////////////////////////////////////////////
  2. //
  3. // ASFErr.h - definition of ASF HRESULT codes
  4. //
  5. //=========================================================================
  6. //
  7. //  Microsoft Windows Media Technologies
  8. //  Copyright (C) Microsoft Corporation.  All Rights Reserved.
  9. //
  10. //=========================================================================
  11. //
  12. // This file is generated by the MC tool from ASFErr.mc
  13. //
  14.  
  15. #ifndef _ASFERR_H
  16. #define _ASFERR_H
  17.  
  18.  
  19. #define STATUS_SEVERITY(hr)  (((hr) >> 30) & 0x3)
  20.  
  21. #ifdef RC_INVOKED
  22. #define _ASF_HRESULT_TYPEDEF_(_sc) _sc
  23. #else // RC_INVOKED
  24. #define _ASF_HRESULT_TYPEDEF_(_sc) ((HRESULT)_sc)
  25. #endif // RC_INVOKED
  26.  
  27.  
  28. ///////////////////////////////////////////////////////////////////////////
  29. //
  30. // Advanced Streaming Format (ASF) Errors (2000 - 2999)
  31. //
  32. //
  33. //  Values are 32 bit values layed out as follows:
  34. //
  35. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  36. //   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  37. //  +---+-+-+-----------------------+-------------------------------+
  38. //  |Sev|C|R|     Facility          |               Code            |
  39. //  +---+-+-+-----------------------+-------------------------------+
  40. //
  41. //  where
  42. //
  43. //      Sev - is the severity code
  44. //
  45. //          00 - Success
  46. //          01 - Informational
  47. //          10 - Warning
  48. //          11 - Error
  49. //
  50. //      C - is the Customer code flag
  51. //
  52. //      R - is a reserved bit
  53. //
  54. //      Facility - is the facility code
  55. //
  56. //      Code - is the facility's status code
  57. //
  58. //
  59. // Define the facility codes
  60. //
  61. #define FACILITY_NS                      0xD
  62.  
  63.  
  64. //
  65. // Define the severity codes
  66. //
  67. #define STATUS_SEVERITY_WARNING          0x2
  68. #define STATUS_SEVERITY_SUCCESS          0x0
  69. #define STATUS_SEVERITY_INFORMATIONAL    0x1
  70. #define STATUS_SEVERITY_ERROR            0x3
  71.  
  72.  
  73. //
  74. // MessageId: ASF_E_BUFFEROVERRUN
  75. //
  76. // MessageText:
  77. //
  78. //  An attempt was made to seek or position past the end of a buffer.%0
  79. //
  80. #define ASF_E_BUFFEROVERRUN              _ASF_HRESULT_TYPEDEF_(0xC00D07D0L)
  81.  
  82. //
  83. // MessageId: ASF_E_BUFFERTOOSMALL
  84. //
  85. // MessageText:
  86. //
  87. //  The supplied input or output buffer was too small.%0
  88. //
  89. #define ASF_E_BUFFERTOOSMALL             _ASF_HRESULT_TYPEDEF_(0xC00D07D1L)
  90.  
  91. //
  92. // MessageId: ASF_E_BADLANGUAGEID
  93. //
  94. // MessageText:
  95. //
  96. //  The language ID was not found.%0
  97. //
  98. #define ASF_E_BADLANGUAGEID              _ASF_HRESULT_TYPEDEF_(0xC00D07D2L)
  99.  
  100. //
  101. // MessageId: ASF_E_NOPAYLOADLENGTH
  102. //
  103. // MessageText:
  104. //
  105. //  The multiple payload packet is missing the payload length.%0
  106. //
  107. #define ASF_E_NOPAYLOADLENGTH            _ASF_HRESULT_TYPEDEF_(0xC00D07DBL)
  108.  
  109. //
  110. // MessageId: ASF_E_TOOMANYPAYLOADS
  111. //
  112. // MessageText:
  113. //
  114. //  The packet contains too many payloads.%0
  115. //
  116. #define ASF_E_TOOMANYPAYLOADS            _ASF_HRESULT_TYPEDEF_(0xC00D07DCL)
  117.  
  118. //
  119. // MessageId: ASF_E_PACKETCONTENTTOOLARGE
  120. //
  121. // MessageText:
  122. //
  123. //  ASF_E_PACKETCONTENTTOOLARGE
  124. //
  125. #define ASF_E_PACKETCONTENTTOOLARGE      _ASF_HRESULT_TYPEDEF_(0xC00D07DEL)
  126.  
  127. //
  128. // MessageId: ASF_E_UNKNOWNPACKETSIZE
  129. //
  130. // MessageText:
  131. //
  132. //  Expecting a fixed packet size but min. and max. are not equal.%0
  133. //
  134. #define ASF_E_UNKNOWNPACKETSIZE          _ASF_HRESULT_TYPEDEF_(0xC00D07E0L)
  135.  
  136. //
  137. // MessageId: ASF_E_INVALIDHEADER
  138. //
  139. // MessageText:
  140. //
  141. //  ASF_E_INVALIDHEADER
  142. //
  143. #define ASF_E_INVALIDHEADER              _ASF_HRESULT_TYPEDEF_(0xC00D07E2L)
  144.  
  145. //
  146. // MessageId: ASF_E_NOCLOCKOBJECT
  147. //
  148. // MessageText:
  149. //
  150. //  The object does not have a valid clock object.%0
  151. //
  152. #define ASF_E_NOCLOCKOBJECT              _ASF_HRESULT_TYPEDEF_(0xC00D07E6L)
  153.  
  154. //
  155. // MessageId: ASF_E_UNKNOWNCLOCKTYPE
  156. //
  157. // MessageText:
  158. //
  159. //  ASF_E_UNKNOWNCLOCKTYPE
  160. //
  161. #define ASF_E_UNKNOWNCLOCKTYPE           _ASF_HRESULT_TYPEDEF_(0xC00D07EBL)
  162.  
  163. //
  164. // MessageId: ASF_E_OPAQUEPACKET
  165. //
  166. // MessageText:
  167. //
  168. //  An attempt was made to restore or access an opaque packet.%0
  169. //
  170. #define ASF_E_OPAQUEPACKET               _ASF_HRESULT_TYPEDEF_(0xC00D07EDL)
  171.  
  172. //
  173. // MessageId: ASF_E_WRONGVERSION
  174. //
  175. // MessageText:
  176. //
  177. //  ASF_E_WRONGVERSION
  178. //
  179. #define ASF_E_WRONGVERSION               _ASF_HRESULT_TYPEDEF_(0xC00D07EEL)
  180.  
  181. //
  182. // MessageId: ASF_E_OVERFLOW
  183. //
  184. // MessageText:
  185. //
  186. //  An attempt was made to store a value which was larger than then destination's maximum value.%0
  187. //
  188. #define ASF_E_OVERFLOW                   _ASF_HRESULT_TYPEDEF_(0xC00D07EFL)
  189.  
  190. //
  191. // MessageId: ASF_E_NOTFOUND
  192. //
  193. // MessageText:
  194. //
  195. //  The object was not found.%0
  196. //
  197. #define ASF_E_NOTFOUND                   _ASF_HRESULT_TYPEDEF_(0xC00D07F0L)
  198.  
  199. //
  200. // Someone else is using MessageIds 2033 & 2034, so we skip them
  201. // 
  202. // 2033 = NS_E_NOTHING_TO_DO
  203. // 2034 = NS_E_NO_MULTICAST
  204.  
  205. //
  206. // MessageId: ASF_E_OBJECTTOOBIG
  207. //
  208. // MessageText:
  209. //
  210. //  The object is too large to be processed in the requested manner.%0
  211. //
  212. #define ASF_E_OBJECTTOOBIG               _ASF_HRESULT_TYPEDEF_(0xC00D07F3L)
  213.  
  214. //
  215. // MessageId: ASF_E_UNEXPECTEDVALUE
  216. //
  217. // MessageText:
  218. //
  219. //  A value was not set as expected.%0
  220. //
  221. #define ASF_E_UNEXPECTEDVALUE            _ASF_HRESULT_TYPEDEF_(0xC00D07F4L)
  222.  
  223. //
  224. // MessageId: ASF_E_INVALIDSTATE
  225. //
  226. // MessageText:
  227. //
  228. //  The request is not valid in the object's current state.%0
  229. //
  230. #define ASF_E_INVALIDSTATE               _ASF_HRESULT_TYPEDEF_(0xC00D07F5L)
  231.  
  232. //
  233. // MessageId: ASF_E_NOLIBRARY
  234. //
  235. // MessageText:
  236. //
  237. //  This object does not have a valid library pointer; it was not properly created or it has been Shutdown().%0
  238. //
  239. #define ASF_E_NOLIBRARY                  _ASF_HRESULT_TYPEDEF_(0xC00D07F6L)
  240.  
  241. //
  242. // MessageId: ASF_E_ALREADYINITIALIZED
  243. //
  244. // MessageText:
  245. //
  246. //  This object has already been initialized; the setting cannot be changed.%0
  247. //
  248. #define ASF_E_ALREADYINITIALIZED         _ASF_HRESULT_TYPEDEF_(0xC00D07F7L)
  249.  
  250. //
  251. // MessageId: ASF_E_INVALIDINIT
  252. //
  253. // MessageText:
  254. //
  255. //  This object has not been initialized properly; that operation cannot be performed.%0
  256. //
  257. #define ASF_E_INVALIDINIT                _ASF_HRESULT_TYPEDEF_(0xC00D07F8L)
  258.  
  259. //
  260. // MessageId: ASF_E_NOHEADEROBJECT
  261. //
  262. // MessageText:
  263. //
  264. //  The ASF Header object could not be found.%0
  265. //
  266. #define ASF_E_NOHEADEROBJECT             _ASF_HRESULT_TYPEDEF_(0xC00D07F9L)
  267.  
  268. //
  269. // MessageId: ASF_E_NODATAOBJECT
  270. //
  271. // MessageText:
  272. //
  273. //  The ASF Data object could not be found.%0
  274. //
  275. #define ASF_E_NODATAOBJECT               _ASF_HRESULT_TYPEDEF_(0xC00D07FAL)
  276.  
  277. //
  278. // MessageId: ASF_E_NOINDEXOBJECT
  279. //
  280. // MessageText:
  281. //
  282. //  The ASF Index object could not be found.%0
  283. //
  284. #define ASF_E_NOINDEXOBJECT              _ASF_HRESULT_TYPEDEF_(0xC00D07FBL)
  285.  
  286. //
  287. // MessageId: ASF_E_NOSTREAMPROPS
  288. //
  289. // MessageText:
  290. //
  291. //  A Stream Properties object with the correct stream number could not be found.%0
  292. //
  293. #define ASF_E_NOSTREAMPROPS              _ASF_HRESULT_TYPEDEF_(0xC00D07FCL)
  294.  
  295. //
  296. // MessageId: ASF_E_NOFILEPROPS
  297. //
  298. // MessageText:
  299. //
  300. //  The File Properties object could not be found.%0
  301. //
  302. #define ASF_E_NOFILEPROPS                _ASF_HRESULT_TYPEDEF_(0xC00D07FDL)
  303.  
  304. //
  305. // MessageId: ASF_E_NOLANGUAGELIST
  306. //
  307. // MessageText:
  308. //
  309. //  The Language List object could not be found.%0
  310. //
  311. #define ASF_E_NOLANGUAGELIST             _ASF_HRESULT_TYPEDEF_(0xC00D07FEL)
  312.  
  313. //
  314. // MessageId: ASF_E_NOINDEXPARAMETERS
  315. //
  316. // MessageText:
  317. //
  318. //  The Index Parameters object could not be found.%0
  319. //
  320. #define ASF_E_NOINDEXPARAMETERS          _ASF_HRESULT_TYPEDEF_(0xC00D07FFL)
  321.  
  322. //
  323. // MessageId: ASF_E_UNSUPPORTEDERRORCONCEALMENT
  324. //
  325. // MessageText:
  326. //
  327. //  The requested error concealment strategy is not supported by this component.%0
  328. //
  329. #define ASF_E_UNSUPPORTEDERRORCONCEALMENT _ASF_HRESULT_TYPEDEF_(0xC00D0800L)
  330.  
  331. //
  332. // MessageId: ASF_E_INVALIDFLAGS
  333. //
  334. // MessageText:
  335. //
  336. //  The flags for this object or set of objects are not properly set.%0
  337. //
  338. #define ASF_E_INVALIDFLAGS               _ASF_HRESULT_TYPEDEF_(0xC00D0801L)
  339.  
  340. //
  341. // MessageId: ASF_E_BADDATADESCRIPTOR
  342. //
  343. // MessageText:
  344. //
  345. //  One or more data descriptors is not properly set.%0
  346. //
  347. #define ASF_E_BADDATADESCRIPTOR          _ASF_HRESULT_TYPEDEF_(0xC00D0802L)
  348.  
  349. //
  350. // MessageId: ASF_E_BADINDEXINTERVAL
  351. //
  352. // MessageText:
  353. //
  354. //  The index has an invalid time interval (probably zero).%0
  355. //
  356. #define ASF_E_BADINDEXINTERVAL           _ASF_HRESULT_TYPEDEF_(0xC00D0803L)
  357.  
  358. //
  359. // MessageId: ASF_E_INVALIDTIME
  360. //
  361. // MessageText:
  362. //
  363. //  The given time value is not valid.%0
  364. //
  365. #define ASF_E_INVALIDTIME                _ASF_HRESULT_TYPEDEF_(0xC00D0804L)
  366.  
  367. //
  368. // MessageId: ASF_E_INVALIDINDEX
  369. //
  370. // MessageText:
  371. //
  372. //  The given index value is not valid.%0
  373. //
  374. #define ASF_E_INVALIDINDEX               _ASF_HRESULT_TYPEDEF_(0xC00D0805L)
  375.  
  376. //
  377. // MessageId: ASF_E_STREAMNUMBERINUSE
  378. //
  379. // MessageText:
  380. //
  381. //  The specified stream number is already in use.%0
  382. //
  383. #define ASF_E_STREAMNUMBERINUSE          _ASF_HRESULT_TYPEDEF_(0xC00D0806L)
  384.  
  385. //
  386. // MessageId: ASF_E_BADMEDIATYPE
  387. //
  388. // MessageText:
  389. //
  390. //  The specified media type does not work with this component.%0
  391. //
  392. #define ASF_E_BADMEDIATYPE               _ASF_HRESULT_TYPEDEF_(0xC00D0807L)
  393.  
  394. //
  395. // MessageId: ASF_E_WRITEFAILED
  396. //
  397. // MessageText:
  398. //
  399. //  The object could not be written as specified.%0
  400. //
  401. #define ASF_E_WRITEFAILED                _ASF_HRESULT_TYPEDEF_(0xC00D0808L)
  402.  
  403. //
  404. // MessageId: ASF_E_NOTENOUGHDESCRIPTORS
  405. //
  406. // MessageText:
  407. //
  408. //  The given data unit requires a larger number of descriptors to be fully parsed.%0
  409. //
  410. #define ASF_E_NOTENOUGHDESCRIPTORS       _ASF_HRESULT_TYPEDEF_(0xC00D0809L)
  411.  
  412. //
  413. // MessageId: ASF_E_INDEXBLOCKUNLOADED
  414. //
  415. // MessageText:
  416. //
  417. //  The index entries for the specified index block have been unloaded from memory and are not available.%0
  418. //
  419. #define ASF_E_INDEXBLOCKUNLOADED         _ASF_HRESULT_TYPEDEF_(0xC00D080AL)
  420.  
  421. //
  422. // MessageId: ASF_E_NOTENOUGHBANDWIDTH
  423. //
  424. // MessageText:
  425. //
  426. //  The specified bandwidth is not large enough.%0
  427. //
  428. #define ASF_E_NOTENOUGHBANDWIDTH         _ASF_HRESULT_TYPEDEF_(0xC00D080BL)
  429.  
  430. //
  431. // MessageId: ASF_E_EXCEEDEDMAXIMUMOBJECTSIZE
  432. //
  433. // MessageText:
  434. //
  435. //  The object has exceeded its maximum size.%0
  436. //
  437. #define ASF_E_EXCEEDEDMAXIMUMOBJECTSIZE  _ASF_HRESULT_TYPEDEF_(0xC00D080CL)
  438.  
  439. //
  440. // MessageId: ASF_E_BADDATAUNIT
  441. //
  442. // MessageText:
  443. //
  444. //  The given data unit is corrupted, badly formatted, or otherwise not valid.%0
  445. //
  446. #define ASF_E_BADDATAUNIT                _ASF_HRESULT_TYPEDEF_(0xC00D080DL)
  447.  
  448. //
  449. // MessageId: ASF_E_HEADERSIZE
  450. //
  451. // MessageText:
  452. //
  453. //  The ASF header has exceeded the specified maximum size.%0
  454. //
  455. #define ASF_E_HEADERSIZE                 _ASF_HRESULT_TYPEDEF_(0xC00D080EL)
  456.  
  457.  
  458. ///////////////////////////////////////////////////////////////////////////
  459. //
  460. // Advanced Streaming Format (ASF) Success Codes (2000 - 2999)
  461. //
  462.  
  463. //
  464. // MessageId: ASF_S_OPAQUEPACKET
  465. //
  466. // MessageText:
  467. //
  468. //  ASF_S_OPAQUEPACKET
  469. //
  470. #define ASF_S_OPAQUEPACKET               _ASF_HRESULT_TYPEDEF_(0x000D07F0L)
  471.  
  472.  
  473. ///////////////////////////////////////////////////////////////////////////
  474. //
  475. // Advanced Streaming Format (ASF) Warnings (2000 - 2999)
  476. //
  477.  
  478.  
  479. #endif // _ASFERR_H
  480.  
  481.